package com.t10;

/**
 * Created by xuyiwei on 2018/7/22.
 */
public class Parcel6 {
    private void internalTracking(boolean b){
        if(b){
            class TrackingSlip{
                private String id;
                TrackingSlip(String s){
                    id = s;
                }
                public String getSlip(){return id;}
            }
            TrackingSlip ts = new TrackingSlip("slip");
            String s = ts.getSlip();
        }
        //在if的作用域内 他是可用的  如果到作用域外  他就是不可用的
    }
}
